package com.library.repository.book;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.library.entities.Book;

/*@Repository("bookRepository")
public class BookRepository extends AbstractRepository<Book>{
	
	@SuppressWarnings("unchecked")
	public List<Book> getAll() {
        return entityManager.createQuery("SELECT b FROM Book b ORDER BY b.name").getResultList();
    }
}*/

public interface BookRepository extends JpaRepository<Book, Integer>{
	
	List<Book> findAll();
	
}
